package com.anan;

public class Person {
    private String name;
    private int age;

    public Person(String name,int age){
        setName(name);
        setAge(age);
    }
    void setName(String name){
        this.name=name;
    }
    void setAge(int age){
        this.age=age;
    }
    String getName(){
        return name;
    }
    int getAge(){
        return age;
    }
    public String say(){
        return "我是"+getName()+"今年"+getAge();
    }

}
